#include "GameSprite.h"

GameSprite::GameSprite()
{

}

GameSprite::GameSprite(Image image, XMFLOAT2 pos)
{
	setImage(image);
	setPosition(pos);
}

bool GameSprite::IsColliding(GameSprite* sprite)
{
	return rectangle.right > sprite->getRactangle().right	 ||
		   rectangle.left < sprite->getRactangle().left		 ||
		   rectangle.bottom > sprite->getRactangle().bottom  ||
		   rectangle.top < sprite->getRactangle().top;

}



void GameSprite::Update(double time)
{
	
}

void GameSprite::Draw(Graphics2D* graphics)
{


}
